import request from "@/utils/http/api";
//物料
export const materialPage = (params:any) => {
    return request({
        method: 'post',
        url: '/api/basedata/material/getPage',
        data: params
    })
}

export const materialAdd = (params:any) => {
    return request({
        method: 'post',
        url: '/api/basedata/material/save',
        data: params
    })
}


export const materialUpdate = (params:any) => {
    return request({
        method: 'put',
        url: '/api/basedata/material/update',
        data: params
    })
}



export const materialDel= (params:any) => {
    return request({
        method: 'delete',
        url: '/api/basedata/material/delete',
        data: params
    })
}

